package PMB.dao;

import java.util.List;
import bean.User;
public interface UserDao {
	Integer insertAdmin(User info);
	List<User> selectAdminById(Integer id);
	Integer updateAdmin(User info);
	List<User> selectInformationByUsername(String username,String password);
	
	Integer updateAdminPassWord(String newpassWord,String username);
	
	Integer updatAdminInformation(String userName,String phone,String email,String username);
	
	Integer insertUser(User info);
	Integer deleteUser(Integer id,Integer role);
	Integer deleteUserById(Integer idlist,Integer role);
	Integer updateUser(User info);
	
	Integer selectAdminPwd(Integer id,Integer role,String pwd);
	
	Integer getUserCount(Integer role);
	Integer getUserCountByUserNameOrDate(Integer role,String startDate,String EndDate,String userName);
	
	List<User> GetUserPaging( Integer role,Integer pageIndex,Integer pageSize);
	List<User> GetUserPagingAll(Integer pageIndex,Integer pageSize);
	List<User> getUserPagingByUserNameOrDate( Integer role,String startDate,String EndDate,String userName,Integer pageIndex,Integer pageSize);
	
	Integer updateUserState(Integer role,Integer id,Integer state);
	Integer login(Integer role,String userName,String password);
	
	
	
	
	
}
